package com.vanke.devops.domain.domain.schedulejob;

import com.baomidou.mybatisplus.plugins.Page;
import com.vanke.devops.dal.model.ScheduleJob;
import com.vanke.devops.domain.base.IBaseService;
import com.vanke.devops.domain.domain.schedulejob.dto.ScheduleJobDTO;
import com.vanke.devops.domain.domain.schedulejob.param.ScheduleJobParam;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 陈景阳
 * @since 2018-06-08
 */
public interface IScheduleJobService extends IBaseService<ScheduleJob> {

    Page<ScheduleJobDTO> page(Integer pageNo,Integer pageSize);

    ScheduleJobDTO add(ScheduleJobParam param);

    ScheduleJobDTO getInfo(Integer id);

    ScheduleJobDTO update(Integer id,ScheduleJobParam param);

    void deleteBatch(Integer[] jobIds);

    int updateBatch(Integer[] jobIds, int status);

    void run(Integer[] jobIds);

    void pause(Integer[] jobIds);

    void resume(Integer[] jobIds);
}
